#!/usr/bin/python

import os;
import sys;

if len(sys.argv) == 1:
  print "Usage: ./run.py <instance> <seed> <time>";
elif len(sys.argv) == 2:
  seed = 0;
  time = 3;
elif len(sys.argv) == 3:
  seed = sys.argv[2];
  time = 3;
else:
  seed = sys.argv[2];
  time = sys.argv[3];

cmd = "ls instances | grep "+sys.argv[1];
instances = os.system(cmd);
print instances;
